/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.user.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 充值记录
 *
 * @author pigx code generator
 * @date 2022-11-21 16:43:06
 */
@Data
@TableName("recharge_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "充值记录")
public class RechargeRecord extends Model<RechargeRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键ID")
    private Long id;

    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createBy;

    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除
     */
    @ApiModelProperty(value="逻辑删除")
    private String delFlag;

    /**
     * 交易哈希
     */
    @ApiModelProperty(value="交易哈希")
    private String transactionHash;

    /**
     * 来源地址
     */
    @ApiModelProperty(value="来源地址")
    private String sourceAddress;

    /**
     * 到账地址
     */
    @ApiModelProperty(value="到账地址")
    private String arrivalAddress;

    /**
     * 数量
     */
    @ApiModelProperty(value="数量")
    private BigDecimal quantity;

    /**
     * 区块高度
     */
    @ApiModelProperty(value="区块高度")
    private String blockNumber;

    /**
     * 区块确认数
     */
    @ApiModelProperty(value="区块确认数")
    private String blockConfirmationNumber;

    /**
     * 状态（1：充值中，2：已完成，3：已失败）
     */
    @ApiModelProperty(value="状态（1：充值中，2：已完成，3：已失败）")
    private String state;

    /**
     * 账户id
     */
    @ApiModelProperty(value="账户id")
    private Long addressId;

    /**
     * 最小充值数
     */
    @ApiModelProperty(value="最小充值数")
    private BigDecimal minimumRechargeNumber;

    /**
     * 充值区块确认数
     */
    @ApiModelProperty(value="充值区块确认数")
    private String blockConfirmationRechargeNumber;

	/**
	 * 手续费
	 */
	@ApiModelProperty(value="手续费")
	private BigDecimal serviceCharge;

    /**
     * 用户ID
     */
    @ApiModelProperty(value="用户ID")
    private Long userId;

    /**
     * 公链
     */
    @ApiModelProperty(value="公链")
    private String publicChain;

    /**
     * 币种
     */
    @ApiModelProperty(value="币种")
    private String currency;

    /**
     * 充值类型
     */
    @ApiModelProperty(value="充值类型")
    private String type;

    /**
     * 备注
     */
    @ApiModelProperty(value="备注")
    private String remark;

}
